//
//  VideoAddChildVC.m
//  WatchBall
//
//  Created by lanou3g on 15/6/3.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "VideoAddChildVC.h"
#import "VideoTableViewController.h"

@implementation VideoAddChildVC
+ (void)getChildWithVideoVC:(VideoViewController *)videoVC{
    
    
     CGRect CSLframe = videoVC.videoScrollV.bounds;
    

    
    
    VideoTableViewController *childCSLVC = [[VideoTableViewController alloc]initWithStyle:UITableViewStylePlain useHomePW:CSLVideoHomePageWebSite refreshW:CSLVideoWebRefresh detailWeb:CSLVideoWebDetail];
    [videoVC addChildViewController:childCSLVC];
    CSLframe.origin.x = CGRectGetWidth(videoVC.videoScrollV.bounds)*1;

    childCSLVC.view.frame = CSLframe;
    [videoVC.videoScrollV addSubview:childCSLVC.view];
    
    
    VideoTableViewController *CBA = [[VideoTableViewController alloc]initWithStyle:UITableViewStylePlain useHomePW:CBAVideoHomePageWeb refreshW:CBAVideoRefreshWeb detailWeb:CSLVideoWebDetail];
    CSLframe.origin.x = 0;
    CBA.view.frame = CSLframe;
    [videoVC addChildViewController:CBA];
    [videoVC.videoScrollV addSubview:CBA.view];
    
    VideoTableViewController *UEFACLVC = [[VideoTableViewController alloc]initWithStyle:UITableViewStylePlain useHomePW:UEFACLVCVideoHomePageWeb refreshW:UEFACLVCVideoRefreshWeb detailWeb:CSLVideoWebDetail];
    CSLframe.origin.x = CGRectGetWidth(videoVC.videoScrollV.bounds)*2;
    UEFACLVC.view.frame = CSLframe;
    [videoVC addChildViewController:UEFACLVC];
    [videoVC.videoScrollV addSubview:UEFACLVC.view];
    
    VideoTableViewController *SERIVC = [[VideoTableViewController alloc]initWithStyle:UITableViewStylePlain useHomePW:SERIVideoHomePageWebSite refreshW:SERIVideoWebRefresh detailWeb:SERIVideoWebDetail];
    
    CSLframe.origin.x = CGRectGetWidth(videoVC.videoScrollV.bounds)*3;
    SERIVC.view.frame = CSLframe;
    [videoVC addChildViewController:SERIVC];
    [videoVC.videoScrollV addSubview:SERIVC.view];
    
    
    
    
}



@end
